package com.ruoyi.mall.service.impl;

import com.ruoyi.health.api.enums.ReportEnum;
import com.ruoyi.mall.api.domian.Product;
import com.ruoyi.mall.service.IProductService;
import com.ruoyi.mall.service.RecommendProductsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
public class GlossoscopyStrategy implements RecommendProductsService<String> {
    @Autowired
    private IProductService productService;
    @Override
    public ReportEnum reportType() {
        return ReportEnum.GLOSSOSCOPY;
    }

    @Override
    public List<Product> getRecommendProducts(String param) {
        return productService.selectProductByTagCode(param);
    }
}
